<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>list employee page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<style type="text/css">
table {
	border: 1px solid black;
	border-collapse: collapse;
}

table thead tr th {
	border: 1px solid black;
	padding: 3px;
	background-color: #cccccc;
}

table tbody tr td {
	border: 1px solid black;
	padding: 3px;
}
</style>
	</head>

	<body>
		<center>
			<h3>
				雇员管理：
			</h3>
			<br>
			<h4>
				<a href="../emp/add.jsp">员工注册</a>
			</h4>
			<s:form action="delete" theme="simple">
				<table>
					<thead>
						<tr>
							<th>
								选择
							</th>
							<th>
								编号
							</th>
							<th>
								姓名
							</th>
							<th>
								电话
							</th>
							<th>
								地址
							</th>
							<th>
								操作
							</th>
						</tr>
					</thead>
					<tbody>
						<s:iterator value="employees">
							<tr>
								<td>
									<input type="radio" name="id"
										value='<s:property value="id" />'/>
								</td>
								<td>
									<s:property value="id" />
								</td>
								<td>
									<s:property value="name" />
								</td>
								<td>
									<s:property value="phone" />
								</td>
								<td>
									<s:property value="address" />
								</td>
								<td>
									<a
										href='<s:url action="edit"><s:param name="id" value="id" /></s:url>'>
										修改 </a> &nbsp;
									<a
										href='<s:url action="delete"><s:param name="id" value="id" /></s:url>'>
										删除 </a>
								</td>
							</tr>
						</s:iterator>
					</tbody>
				</table>
				<s:submit value="delete" />
			</s:form>
		</center>
	</body>
</html>
